﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("请输入动物类型：（猫or狗）");
            string a = Console.ReadLine();
            if (a.Equals("'狗"))
            {
                dog d = new dog();
                Console.WriteLine("请输入狗的名字：");
                d.animalname = Console.ReadLine();
                Console.WriteLine("请输入狗的颜色");
                d.animalolor = Console.ReadLine();
                d.bite();

            }

            if (a.Equals("鱼"))
            {
                yu f = new yu();
                Console.WriteLine("请输入鱼的名字：");
                yu.animalname = Console.ReadLine();
                Console.WriteLine("请输入鱼的颜色：");
                yu.animalcolor = Console.ReadLine();
                f.blow();

            }

        }

    }
}
